<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="description" content="文件共享平台使用的开源组件及许可证信息，展示了项目依赖的所有开源库及其许可条款">
    <title>开源软件列表 - 文件共享平台</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
    <link rel="icon" href="{{ url_for('static', filename='favicon.ico') }}" type="image/x-icon">
    <style>
        :root {
            --primary: #4361ee;
            --primary-dark: #3a0ca3;
            --secondary: #6a5af9;
            --light: #f8f9fc;
            --dark: #212529;
            --gray: #6c757d;
        }
        
        body {
            background-color: #f5f7fb;
            color: #333;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }
        
        .header {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            padding: 40px 0;
            margin-bottom: 30px;
        }
        
        .card {
            border-radius: 12px;
            border: none;
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            height: 100%;
            overflow: hidden;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 25px rgba(67, 97, 238, 0.15);
        }
        
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
        }
        
        .card-header {
            background-color: white;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            font-weight: 600;
            padding: 20px;
            border-radius: 12px 12px 0 0 !important;
        }
        
        .card-body {
            padding: 25px;
        }
        
        .license-badge {
            display: inline-block;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
        }
        
        .license-mit {
            background-color: rgba(40, 167, 69, 0.15);
            color: #28a745;
        }
        
        .license-apache {
            background-color: rgba(23, 162, 184, 0.15);
            color: #17a2b8;
        }
        
        .license-bsd {
            background-color: rgba(255, 193, 7, 0.15);
            color: #ffc107;
        }
        
        .license-gpl {
            background-color: rgba(220, 53, 69, 0.15);
            color: #dc3545;
        }
        
        .filter-buttons {
            margin-bottom: 30px;
        }
        
        .filter-btn {
            margin: 5px;
            border-radius: 30px;
            padding: 8px 20px;
            font-weight: 500;
            transition: all 0.3s;
        }
        
        .filter-btn.active, .filter-btn:hover {
            background: var(--primary);
            color: white;
        }
        
        .project-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            color: white;
            font-size: 28px;
        }
        
        .project-link {
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
        }
        
        .project-link:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }
        
        .footer {
            background-color: var(--dark);
            color: rgba(255, 255, 255, 0.7);
            padding: 40px 0;
            margin-top: 60px;
        }
        
        .footer a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
        }
        
        .footer a:hover {
            color: white;
        }
        
        .stat-card {
            background: white;
            border-radius: 12px;
            padding: 25px;
            text-align: center;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        }
        
        .stat-number {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--primary);
            margin: 10px 0;
            transition: all 0.3s ease;
        }

        .stat-card:hover .stat-number {
            transform: scale(1.1);
        }
        
        .stat-label {
            color: var(--gray);
            font-size: 1rem;
        }

        /* 深色模式变量 */
        :root {
          --primary-light: #4361ee;
          --primary-dark: #3a0ca3;
          --light: #f8f9fc;
          --dark: #212529;
          --gray: #6c757d;
          --text-color: #333;
          --bg-color: #f5f7fb;
          --card-bg: #ffffff;
          --header-bg: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
          --border-color: #dee2e6;
          --input-bg: #ffffff;
          --text-muted: #6c757d;
        }
        
        [data-theme="dark"] {
          --primary-light: #5a76ff;
          --primary-dark: #4a5ad4;
          --light: #1a1c23;
          --dark: #f8f9fa;
          --gray: #a0a8b0;
          --text-color: #e0e0e0;
          --bg-color: #121418;
          --card-bg: #1e2229;
          --header-bg: linear-gradient(135deg, #2a3a8d, #1a1a5e);
          --border-color: #2d333b;
          --input-bg: #252b33;
          --text-muted: #a0a8b0;
          --primary: #5a76ff;
          --secondary: #4a5ad4;
          --success: #2ec4b6;
          --stat-card-bg: #252b33;
          --filter-btn-active: #5a76ff;
          --project-icon-bg: #2d333b;
          --license-badge-bg: rgba(90, 118, 255, 0.1);
          --footer-bg: #1a1c23;
        }
        
        /* 通用深色模式覆盖 */
        [data-theme="dark"] body {
          background-color: var(--bg-color);
          color: var(--text-color);
        }
        
        [data-theme="dark"] .github-card {
          background-color: var(--card-bg);
          border-color: var(--border-color);
        }
        
        [data-theme="dark"] .github-header {
          background: var(--header-bg);
        }
        
        [data-theme="dark"] .text-muted {
          color: var(--text-muted) !important;
        }
        
        [data-theme="dark"] .form-control {
          background-color: var(--input-bg);
          color: var(--text-color);
          border-color: var(--border-color);
        }
        
        .theme-switch-container {
          position: fixed;
          top: 15px;
          right: 15px;
          z-index: 1000;
        }
        
        #theme-toggle {
          background-color: rgba(255, 255, 255, 0.2);
          color: white;
          border: none;
          box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }
        
        [data-theme="dark"] #theme-toggle {
          background-color: rgba(0, 0, 0, 0.2);
        }
        
        /* 深色模式下的组件样式 */
        [data-theme="dark"] .header {
          background: var(--header-bg);
        }
        
        [data-theme="dark"] .card {
          background-color: var(--card-bg);
          border-color: var(--border-color);
          color: var(--text-color);
        }
        
        [data-theme="dark"] .card:hover {
          box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
        }
        
        [data-theme="dark"] .card-header {
          background-color: #2a2e37;
          border-color: var(--border-color);
          color: var(--text-color);
        }
        
        [data-theme="dark"] .stat-card {
          background: var(--card-bg);
          box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        }
        
        [data-theme="dark"] .stat-number {
          color: var(--primary-light);
        }
        
        [data-theme="dark"] .filter-btn {
          color: var(--text-color);
          border-color: var(--border-color);
        }
        
        [data-theme="dark"] .filter-btn.active, 
        [data-theme="dark"] .filter-btn:hover {
          background: var(--primary-light);
          color: white;
          border-color: var(--primary-light);
        }
        
        [data-theme="dark"] .project-icon {
          background: var(--header-bg);
        }
        
        [data-theme="dark"] .project-link {
          color: var(--primary-light);
        }
        
        [data-theme="dark"] .project-link:hover {
          color: var(--primary-dark);
        }
        
        [data-theme="dark"] .footer {
          background-color: var(--footer-bg);
          color: rgba(255, 255, 255, 0.7);
        }
        
        [data-theme="dark"] .btn-light {
          background-color: var(--card-bg);
          color: var(--text-color);
          border-color: var(--border-color);
        }
        
        [data-theme="dark"] .btn-light:hover {
          background-color: var(--input-bg);
        }
        
        [data-theme="dark"] .table {
          color: var(--text-color);
        }
        
        [data-theme="dark"] .table thead {
          background-color: var(--card-bg);
        }
        
        [data-theme="dark"] .table th,
        [data-theme="dark"] .table td {
          border-color: var(--border-color);
        }
        
        [data-theme="dark"] .badge {
          color: var(--text-color) !important;
        }
    </style>
</head>
<body>
    <div class="theme-switch-container">
        <button id="theme-toggle" class="btn btn-sm btn-outline-secondary">
            <i class="bi bi-moon"></i> 深色模式
        </button>
    </div>

    <!-- 头部区域 -->
    <header class="header">
        <div class="container">
            <div class="row align-items-center">
                <div class="col-md-8">
                    <h1><i class="bi bi-boxes"></i> 开源软件列表</h1>
                    <p class="lead">文件共享平台使用的开源组件及许可证信息</p>
                </div>
                <div class="col-md-4 text-md-end">
                    <a href="/index" class="btn btn-light btn-lg">
                        <i class="bi bi-arrow-left me-2"></i> 返回主页
                    </a>
                </div>
            </div>
        </div>
    </header>

    <!--极验验证-->
    <section class="container mb-5">
        <div class="row g-4">
            <div class="card mb-4">
                <div class="card-body">
                    <div class="d-flex align-items-center">
                        <div class="me-3">
                            <i class="bi bi-shield-check" style="font-size: 2.5rem; color: #4361ee;"></i>
                        </div>
                        <div>
                            <h2 class="card-title">特别感谢:极验提供的验证服务</h2>
                            <h3 class="card-title">GEETEST-极验</h3>
                            <p class="card-text">全球黑产对抗引领者 - 业务安全丨业务风控丨验证码安全</p>
                            <a href="https://www.geetest.com" target="_blank" class="btn btn-outline-primary">
                                访问官网 <i class="bi bi-box-arrow-up-right ms-1"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>



    <!-- 统计信息 -->
    <section class="container mb-5">
        <div class="row">
            <div class="col-md-4 mb-4">
                <div class="stat-card">
                    <i class="bi bi-github" style="font-size: 2rem; color: var(--primary);"></i>
                    <div class="stat-number">17</div>
                    <div class="stat-label">使用的开源项目</div>
                </div>
            </div>
            <div class="col-md-4 mb-4">
                <div class="stat-card">
                    <i class="bi bi-journal-code" style="font-size: 2rem; color: var(--primary);"></i>
                    <div class="stat-number">3</div>
                    <div class="stat-label">许可证类型</div>
                </div>
            </div>
            <div class="col-md-4 mb-4">
                <div class="stat-card">
                    <i class="bi bi-code-slash" style="font-size: 2rem; color: var(--primary);"></i>
                    <div class="stat-number">10000+</div>
                    <div class="stat-label">代码行数</div>
                </div>
            </div>
        </div>
    </section>

    <!-- 过滤选项 -->
    <section class="container filter-buttons">
        <div class="d-flex flex-wrap justify-content-center">
            <button class="btn btn-outline-primary filter-btn active" data-filter="all">全部</button>
            <button class="btn btn-outline-primary filter-btn" data-filter="web">Web框架</button>
            <button class="btn btn-outline-primary filter-btn" data-filter="util">实用工具</button>
            <button class="btn btn-outline-primary filter-btn" data-filter="net">网络工具</button>
        </div>
    </section>

    <!-- 开源项目列表 -->
    <section class="container mb-5">
        <div class="row g-4">
            <!-- Flask -->
            <div class="col-lg-4 col-md-6" data-category="web">
                <div class="card">
                    <div class="card-body">
                        <div class="project-icon">
                            <i class="bi bi-flower1"></i>
                        </div>
                        <h3 class="card-title">Flask</h3>
                        <div class="d-flex justify-content-between items-center mb-2">
                            <span class="text-muted">轻量级Python Web框架</span>
                            <span class="badge bg-primary bg-opacity-10 text-primary">v2.3.3</span>
                        </div>
                        <p><span class="license-badge license-bsd">BSD许可证</span></p>
                        <p class="card-text">Flask是一个使用Python编写的轻量级Web应用框架。基于Werkzeug WSGI工具箱和Jinja2模板引擎。</p>
                        <a href="https://flask.palletsprojects.com/" target="_blank" class="project-link">
                            项目官网 <i class="bi bi-box-arrow-up-right ms-2"></i>
                        </a>
                    </div>
                </div>
            </div>
            
            <!-- Flask-Cors -->
            <div class="col-lg-4 col-md-6" data-category="web">
                <div class="card">
                    <div class="card-body">
                        <div class="project-icon">
                            <i class="bi bi-shuffle"></i>
                        </div>
                        <h3 class="card-title">Flask-Cors</h3>
                        <div class="d-flex justify-content-between items-center mb-2">
                            <span class="text-muted">Flask跨域资源共享扩展</span>
                            <span class="badge bg-primary bg-opacity-10 text-primary">v3.0.10</span>
                        </div>
                        <p><span class="license-badge license-mit">MIT许可证</span></p>
                        <p class="card-text">Flask-Cors是一个Flask扩展,用于处理跨域资源共享,使跨域AJAX请求成为可能。</p>
                        <a href="https://flask-cors.readthedocs.io/" target="_blank" class="project-link">
                            项目官网 <i class="bi bi-box-arrow-up-right ms-2"></i>
                        </a>
                    </div>
                </div>
            </div>
            
            <!-- Flask-Session -->
            <div class="col-lg-4 col-md-6" data-category="web">
                <div class="card">
                    <div class="card-body">
                        <div class="project-icon">
                            <i class="bi bi-person-badge"></i>
                        </div>
                        <h3 class="card-title">Flask-Session</h3>
                        <div class="d-flex justify-content-between items-center mb-2">
                            <span class="text-muted">Flask会话管理扩展</span>
                            <span class="badge bg-primary bg-opacity-10 text-primary">v0.5.0</span>
                        </div>
                        <p><span class="license-badge license-bsd">BSD许可证</span></p>
                        <p class="card-text">Flask-Session是一个扩展,为Flask应用程序添加了服务器端会话支持。</p>
                        <a href="https://flask-session.readthedocs.io/" target="_blank" class="project-link">
                            项目官网 <i class="bi bi-box-arrow-up-right ms-2"></i>
                        </a>
                    </div>
                </div>
            </div>
            
            <!-- Werkzeug -->
            <div class="col-lg-4 col-md-6" data-category="web">
                <div class="card">
                    <div class="card-body">
                        <div class="project-icon">
                            <i class="bi bi-gear"></i>
                        </div>
                        <h3 class="card-title">Werkzeug</h3>
                        <div class="d-flex justify-content-between items-center mb-2">
                            <span class="text-muted">WSGI实用工具库</span>
                            <span class="badge bg-primary bg-opacity-10 text-primary">v2.3.7</span>
                        </div>
                        <p><span class="license-badge license-bsd">BSD许可证</span></p>
                        <p class="card-text">Werkzeug是一个全面的WSGI Web应用程序库,为Flask提供了基础支持。</p>
                        <a href="https://werkzeug.palletsprojects.com/" target="_blank" class="project-link">
                            项目官网 <i class="bi bi-box-arrow-up-right ms-2"></i>
                        </a>
                    </div>
                </div>
            </div>
            
            <!-- Jinja2 -->
            <div class="col-lg-4 col-md-6" data-category="web">
                <div class="card">
                    <div class="card-body">
                        <div class="project-icon">
                            <i class="bi bi-file-earmark-code"></i>
                        </div>
                        <h3 class="card-title">Jinja2</h3>
                        <div class="d-flex justify-content-between items-center mb-2">
                            <span class="text-muted">Python模板引擎</span>
                            <span class="badge bg-primary bg-opacity-10 text-primary">v3.1.2</span>
                        </div>
                        <p><span class="license-badge license-bsd">BSD许可证</span></p>
                        <p class="card-text">Jinja2是一个快速、富有表现力、可扩展的模板引擎,为Flask提供了模板渲染功能。</p>
                        <a href="https://jinja.palletsprojects.com/" target="_blank" class="project-link">
                            项目官网 <i class="bi bi-box-arrow-up-right ms-2"></i>
                        </a>
                    </div>
                </div>
            </div>
            
            <!-- psutil -->
            <div class="col-lg-4 col-md-6" data-category="util">
                <div class="card">
                    <div class="card-body">
                        <div class="project-icon">
                            <i class="bi bi-cpu"></i>
                        </div>
                        <h3 class="card-title">psutil</h3>
                        <div class="d-flex justify-content-between items-center mb-2">
                            <span class="text-muted">系统监控库</span>
                            <span class="badge bg-primary bg-opacity-10 text-primary">v5.9.5</span>
                        </div>
                        <p><span class="license-badge license-bsd">BSD许可证</span></p>
                        <p class="card-text">psutil是一个跨平台库,用于检索Python中运行的进程和系统利用率的信息。</p>
                        <a href="https://github.com/giampaolo/psutil" target="_blank" class="project-link">
                            项目官网 <i class="bi bi-box-arrow-up-right ms-2"></i>
                        </a>
                    </div>
                </div>
            </div>
            
            <!-- netifaces -->
            <div class="col-lg-4 col-md-6" data-category="net">
                <div class="card">
                    <div class="card-body">
                        <div class="project-icon">
                            <i class="bi bi-wifi"></i>
                        </div>
                        <h3 class="card-title">netifaces</h3>
                        <div class="d-flex justify-content-between items-center mb-2">
                            <span class="text-muted">网络接口信息库</span>
                            <span class="badge bg-primary bg-opacity-10 text-primary">v0.11.0</span>
                        </div>
                        <p><span class="license-badge license-mit">MIT许可证</span></p>
                        <p class="card-text">netifaces是一个小型便携式模块,用于访问网络接口信息。</p>
                        <a href="https://github.com/al45tair/netifaces" target="_blank" class="project-link">
                            项目官网 <i class="bi bi-box-arrow-up-right ms-2"></i>
                        </a>
                    </div>
                </div>
            </div>
            
            <!-- python-dotenv -->
            <div class="col-lg-4 col-md-6" data-category="util">
                <div class="card">
                    <div class="card-body">
                        <div class="project-icon">
                            <i class="bi bi-file-earmark-text"></i>
                        </div>
                        <h3 class="card-title">python-dotenv</h3>
                        <div class="d-flex justify-content-between items-center mb-2">
                            <span class="text-muted">环境变量管理库</span>
                            <span class="badge bg-primary bg-opacity-10 text-primary">v1.0.0</span>
                        </div>
                        <p><span class="license-badge license-bsd">BSD许可证</span></p>
                        <p class="card-text">python-dotenv允许应用程序从.env文件加载配置,遵循12-factor应用原则。</p>
                        <a href="https://github.com/theskumar/python-dotenv" target="_blank" class="project-link">
                            项目官网 <i class="bi bi-box-arrow-up-right ms-2"></i>
                        </a>
                    </div>
                </div>
            </div>

            <!-- chardet -->
            <div class="col-lg-4 col-md-6" data-category="util">
                <div class="card">
                    <div class="card-body">
                        <div class="project-icon">
                            <i class="bi bi-translate"></i>
                        </div>
                        <h3 class="card-title">chardet</h3>
                        <div class="d-flex justify-content-between items-center mb-2">
                            <span class="text-muted">字符编码检测库</span>
                            <span class="badge bg-primary bg-opacity-10 text-primary">v5.2.0</span>
                        </div>
                        <p><span class="license-badge license-mit">MIT许可证</span></p>
                        <p class="card-text">chardet是一个通用的字符编码检测器,可以检测文本的编码格式。</p>
                        <a href="https://github.com/chardet/chardet" target="_blank" class="project-link">
                            项目官网 <i class="bi bi-box-arrow-up-right ms-2"></i>
                        </a>
                    </div>
                </div>
            </div>

            <!-- requests -->
            <div class="col-lg-4 col-md-6" data-category="net">
                <div class="card">
                    <div class="card-body">
                        <div class="project-icon">
                            <i class="bi bi-wifi"></i>
                        </div>
                        <h3 class="card-title">requests</h3>
                        <div class="d-flex justify-content-between items-center mb-2">
                            <span class="text-muted">HTTP请求库</span>
                            <span class="badge bg-primary bg-opacity-10 text-primary">v2.32.4</span>
                        </div>
                        <p><span class="license-badge license-apache">Apache许可证</span></p>
                        <p class="card-text">requests是一个优雅而简单的Python HTTP库,用于发送各种HTTP请求。</p>
                        <a href="https://requests.readthedocs.io/" target="_blank" class="project-link">
                            项目官网 <i class="bi bi-box-arrow-up-right ms-2"></i>
                        </a>
                    </div>
                </div>
            </div>

            <!-- gevent -->
            <div class="col-lg-4 col-md-6" data-category="util">
                <div class="card">
                    <div class="card-body">
                        <div class="project-icon">
                            <i class="bi bi-cpu"></i>
                        </div>
                        <h3 class="card-title">gevent</h3>
                        <div class="d-flex justify-content-between items-center mb-2">
                            <span class="text-muted">协程网络库</span>
                            <span class="badge bg-primary bg-opacity-10 text-primary">v23.9.1</span>
                        </div>
                        <p><span class="license-badge license-mit">MIT许可证</span></p>
                        <p class="card-text">gevent是一个基于libev的Python网络库,使用greenlet实现协程。</p>
                        <a href="https://www.gevent.org/" target="_blank" class="project-link">
                            项目官网 <i class="bi bi-box-arrow-up-right ms-2"></i>
                        </a>
                    </div>
                </div>
            </div>

            <!-- greenlet -->
            <div class="col-lg-4 col-md-6" data-category="util">
                <div class="card">
                    <div class="card-body">
                        <div class="project-icon">
                            <i class="bi bi-cpu"></i>
                        </div>
                        <h3 class="card-title">greenlet</h3>
                        <div class="d-flex justify-content-between items-center mb-2">
                            <span class="text-muted">轻量级线程库</span>
                            <span class="badge bg-primary bg-opacity-10 text-primary">v2.0.2</span>
                        </div>
                        <p><span class="license-badge license-mit">MIT许可证</span></p>
                        <p class="card-text">greenlet是Python的轻量级线程库,提供了微线程的概念,支持协作式多任务。</p>
                        <a href="https://greenlet.readthedocs.io/" target="_blank" class="project-link">
                            项目官网 <i class="bi bi-box-arrow-up-right ms-2"></i>
                        </a>
                    </div>
                </div>
            </div>

            <!-- itsdangerous -->
            <div class="col-lg-4 col-md-6" data-category="security">
                <div class="card">
                    <div class="card-body">
                        <div class="project-icon">
                            <i class="bi bi-shield-lock"></i>
                        </div>
                        <h3 class="card-title">itsdangerous</h3>
                        <div class="d-flex justify-content-between items-center mb-2">
                            <span class="text-muted">安全数据序列化库</span>
                            <span class="badge bg-primary bg-opacity-10 text-primary">v2.1.2</span>
                        </div>
                        <p><span class="license-badge license-mit">MIT许可证</span></p>
                        <p class="card-text">itsdangerous提供了安全的序列化和签名功能,用于保护数据不被篡改。</p>
                        <a href="https://itsdangerous.palletsprojects.com/" target="_blank" class="project-link">
                            项目官网 <i class="bi bi-box-arrow-up-right ms-2"></i>
                        </a>
                    </div>
                </div>
            </div>

            <!-- click -->
            <div class="col-lg-4 col-md-6" data-category="cli">
                <div class="card">
                    <div class="card-body">
                        <div class="project-icon">
                            <i class="bi bi-terminal"></i>
                        </div>
                        <h3 class="card-title">click</h3>
                        <div class="d-flex justify-content-between items-center mb-2">
                            <span class="text-muted">命令行接口库</span>
                            <span class="badge bg-primary bg-opacity-10 text-primary">v8.1.7</span>
                        </div>
                        <p><span class="license-badge license-mit">MIT许可证</span></p>
                        <p class="card-text">click是一个用于创建优雅命令行接口的Python库,支持参数解析和子命令等功能。</p>
                        <a href="https://click.palletsprojects.com/" target="_blank" class="project-link">
                            项目官网 <i class="bi bi-box-arrow-up-right ms-2"></i>
                        </a>
                    </div>
                </div>
            </div>

            <!-- pdfminer.six -->
            <div class="col-lg-4 col-md-6" data-category="util">
                <div class="card">
                    <div class="card-body">
                        <div class="project-icon">
                            <i class="bi bi-file-earmark-text"></i>
                        </div>
                        <h3 class="card-title">pdfminer.six</h3>
                        <div class="d-flex justify-content-between items-center mb-2">
                            <span class="text-muted">PDF解析库</span>
                            <span class="badge bg-primary bg-opacity-10 text-primary">v20231228</span>
                        </div>
                        <p><span class="license-badge license-mit">MIT许可证</span></p>
                        <p class="card-text">pdfminer.six是一个用于从PDF文档中提取信息的Python库，支持文本提取和布局分析。</p>
                        <a href="https://github.com/pdfminer/pdfminer.six" target="_blank" class="project-link">
                            项目官网 <i class="bi bi-box-arrow-up-right ms-2"></i>
                        </a>
                    </div>
                </div>
            </div>

            <!-- PyPDF -->
            <div class="col-lg-4 col-md-6" data-category="util">
                <div class="card">
                    <div class="card-body">
                        <div class="project-icon">
                            <i class="bi bi-file-earmark-pdf"></i>
                        </div>
                        <h3 class="card-title">PyPDF</h3>
                        <div class="d-flex justify-content-between items-center mb-2">
                            <span class="text-muted">PDF处理库</span>
                            <span class="badge bg-primary bg-opacity-10 text-primary">v6.0.0</span>
                        </div>
                        <p><span class="license-badge license-bsd">BSD许可证</span></p>
                        <p class="card-text">PyPDF是一个纯Python库，用于处理PDF文件，支持合并、分割、加密和解密PDF文档。</p>
                        <a href="https://github.com/py-pdf/pypdf" target="_blank" class="project-link">
                            项目官网 <i class="bi bi-box-arrow-up-right ms-2"></i>
                        </a>
                    </div>
                </div>
            </div>

            <!-- urllib3 -->
            <div class="col-lg-4 col-md-6" data-category="net">
                <div class="card">
                    <div class="card-body">
                        <div class="project-icon">
                            <i class="bi bi-globe"></i>
                        </div>
                        <h3 class="card-title">urllib3</h3>
                        <div class="d-flex justify-content-between items-center mb-2">
                            <span class="text-muted">HTTP客户端库</span>
                            <span class="badge bg-primary bg-opacity-10 text-primary">v2.0.7</span>
                        </div>
                        <p><span class="license-badge license-mit">MIT许可证</span></p>
                        <p class="card-text">urllib3是一个功能强大且用户友好的HTTP客户端库，为Python提供了安全的连接池和文件后端。</p>
                        <a href="https://urllib3.readthedocs.io/" target="_blank" class="project-link">
                            项目官网 <i class="bi bi-box-arrow-up-right ms-2"></i>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 许可证信息 -->
    <section class="container mb-5">
        <div class="card">
            <div class="card-header">
                <h3 class="mb-0"><i class="bi bi-journal-check me-2"></i> 许可证说明</h3>
            </div>
            <div class="card-body">
                <div class="row">
                    <div class="col-md-6 mb-4">
                        <div class="d-flex items-center mb-2">
                            <span class="license-badge license-mit me-3"></span>
                            <h4 class="m-0">MIT许可证</h4>
                        </div>
                        <p class="text-muted">非常宽松的许可证,允许商业使用、修改、分发和私人使用。唯一的要求是保留版权和许可声明。</p>
                        <div class="mt-2">
                            <strong>主要条款:</strong>
                            <ul class="list-disc list-inside text-muted pl-3">
                                <li>允许商业使用</li>
                                <li>允许修改代码</li>
                                <li>允许分发代码</li>
                                <li>允许私人使用</li>
                                <li>必须包含版权和许可声明</li>
                            </ul>
                        </div>
                    </div>
                    <div class="col-md-6 mb-4">
                        <div class="d-flex items-center mb-2">
                            <span class="license-badge license-bsd me-3"></span>
                            <h4 class="m-0">BSD许可证</h4>
                        </div>
                        <p class="text-muted">与MIT许可证类似,但有一些额外的限制。BSD许可证通常要求在所有副本中保留版权声明。</p>
                        <div class="mt-2">
                            <strong>主要条款:</strong>
                            <ul class="list-disc list-inside text-muted pl-3">
                                <li>允许商业使用</li>
                                <li>允许修改代码</li>
                                <li>允许分发代码</li>
                                <li>允许私人使用</li>
                                <li>必须包含版权和许可声明</li>
                                <li>不允许使用贡献者姓名进行背书</li>
                            </ul>
                        </div>
                    </div>
                    <div class="col-md-6 mb-4">
                        <div class="d-flex items-center mb-2">
                            <span class="license-badge license-apache me-3"></span>
                            <h4 class="m-0">Apache许可证</h4>
                        </div>
                        <p class="text-muted">Apache许可证是一个 permissive 许可证,与MIT许可证类似,但包含更多细节和专利授权条款。</p>
                        <div class="mt-2">
                            <strong>主要条款:</strong>
                            <ul class="list-disc list-inside text-muted pl-3">
                                <li>允许商业使用</li>
                                <li>允许修改代码</li>
                                <li>允许分发代码</li>
                                <li>允许私人使用</li>
                                <li>必须包含版权和许可声明</li>
                                <li>贡献者提供专利授权</li>
                                <li>修改文件必须标记变更</li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 页脚 -->
    <footer class="footer">
        <div class="container">
            <div class="row">
                <div class="col-md-4 mb-4">
                    <h5>文件共享平台</h5>
                    <p>一个基于开源技术的安全文件共享解决方案。</p>
                    <p>版本:{{ app_version }}</p>
                </div>
                <div class="col-md-4 mb-4">
                    <h5>相关链接</h5>
                    <ul class="list-unstyled">
                        <li><a href="/index"><i class="bi bi-house-door me-2"></i> 主页</a></li>
                        <li><a href="/admin"><i class="bi bi-shield-lock me-2"></i> 管理员面板</a></li>
                        <li><a href="https://github.com/508364/" target="_blank"><i class="bi bi-github me-2"></i> GitHub仓库</a></li>
                    </ul>
                </div>
                <div class="col-md-4">
                    <h5>开源许可</h5>
                    <p>本项目遵循MIT开源许可证。</p>
                    <p>© 2025 508364.All rights reserved.</p>
                </div>
            </div>
            <hr class="mt-4 mb-4" style="background-color: rgba(255,255,255,0.1);">
            <div class="text-center">
                <p class="mb-0 text-muted">感谢所有开源项目的贡献者,开源让技术世界更加美好</p>
            </div>
        </div>
    </footer>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <style>
        /* 回到顶部按钮 */
        #back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background-color: var(--primary);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.3s, transform 0.3s;
            transform: translateY(20px);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
            z-index: 999;
        }

        #back-to-top.visible {
            opacity: 1;
            transform: translateY(0);
        }

        [data-theme="dark"] #back-to-top {
            background-color: var(--primary-light);
        }
    </style>
    <script>
        // 页面加载完成后执行
        document.addEventListener('DOMContentLoaded', function() {
            // 平滑滚动
            document.querySelectorAll('a[href^="#"]').forEach(anchor => {
                anchor.addEventListener('click', function (e) {
                    e.preventDefault();
                    document.querySelector(this.getAttribute('href')).scrollIntoView({
                        behavior: 'smooth'
                    });
                });
            });

            // 过滤功能
            const filterButtons = document.querySelectorAll('.filter-btn');
            const projects = document.querySelectorAll('[data-category]');
            
            filterButtons.forEach(button => {
                button.addEventListener('click', function() {
                    // 更新按钮状态
                    filterButtons.forEach(btn => btn.classList.remove('active'));
                    this.classList.add('active');
                    
                    const filter = this.getAttribute('data-filter');
                    
                    // 过滤项目
                    projects.forEach(project => {
                        if (filter === 'all' || project.getAttribute('data-category') === filter) {
                            project.style.display = 'block';
                            setTimeout(() => {
                                project.style.opacity = '1';
                                project.style.transform = 'translateY(0)';
                            }, 50);
                        } else {
                            project.style.opacity = '0';
                            project.style.transform = 'translateY(20px)';
                            setTimeout(() => {
                                project.style.display = 'none';
                            }, 300);
                        }
                    });
                });
            });

            // 深色模式切换功能
            const themeToggle = document.getElementById('theme-toggle');
            
            // 检查本地存储或系统偏好
            const savedTheme = localStorage.getItem('theme') || 
                            (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
            
            if (savedTheme === 'dark') {
                document.documentElement.setAttribute('data-theme', 'dark');
                themeToggle.innerHTML = '<i class="bi bi-sun"></i> 浅色模式';
            }
            
            // 切换主题
            themeToggle.addEventListener('click', function() {
                const currentTheme = document.documentElement.getAttribute('data-theme');
                if (currentTheme === 'dark') {
                    document.documentElement.removeAttribute('data-theme');
                    localStorage.setItem('theme', 'light');
                    themeToggle.innerHTML = '<i class="bi bi-moon"></i> 深色模式';
                } else {
                    document.documentElement.setAttribute('data-theme', 'dark');
                    localStorage.setItem('theme', 'dark');
                    themeToggle.innerHTML = '<i class="bi bi-sun"></i> 浅色模式';
                }
            });
        });
            // 回到顶部按钮功能
        const backToTopButton = document.createElement('div');
        backToTopButton.id = 'back-to-top';
        backToTopButton.innerHTML = '<i class="bi bi-arrow-up"></i>';
        document.body.appendChild(backToTopButton);

        window.addEventListener('scroll', function() {
            if (window.pageYOffset > 300) {
                backToTopButton.classList.add('visible');
            } else {
                backToTopButton.classList.remove('visible');
            }
        });

        backToTopButton.addEventListener('click', function() {
            window.scrollTo({
                top: 0,
                behavior: 'smooth'
            });
        });
    </script>
</body>
</html>